Skip to content

Allow TAR uploads to storage.#9541

Merged
annajowang merged 3 commits intomasterfrom
allow-tar-uploads-storage
Dec 2, 2025
Merged

Allow TAR uploads to storage.#9541
annajowang merged 3 commits intomasterfrom
allow-tar-uploads-storage

Conversation

@annajowang
Copy link
Contributor

@annajowang annajowang commented Nov 26, 2025

Allow Tar uploads to storage.

(Necessary for zip deploy)

@annajowang
Copy link
Contributor Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the ability to upload TAR files in addition to ZIP files to Google Cloud Storage. A ContentType enum is added to distinguish between file types, and the uploadObject function is updated to handle both .zip and .tar.gz files based on this new parameter.

My review has identified a critical bug in the file extension validation for .tar.gz files. I've also included suggestions to improve code quality by using strict equality checks and updating documentation to reflect the new functionality. Please address the critical issue and consider the other suggestions for improvement.

@annajowang annajowang marked this pull request as ready for review November 26, 2025 23:09
@annajowang annajowang merged commit fa737e4 into master Dec 2, 2025
48 checks passed
@annajowang annajowang deleted the allow-tar-uploads-storage branch December 2, 2025 17:46
andrewbrook pushed a commit that referenced this pull request Dec 16, 2025
* Allow TAR uploads to storage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants